package com.ruoyi.lowcode.domain.bo;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.AddOrUpdateGroup;
import com.ruoyi.common.core.validate.DeleteGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.util.Map;

@Getter
@Setter
public class ModelRowBo {

    @NotNull(message = "模型id不能为空", groups = { AddOrUpdateGroup.class, DeleteGroup.class })
    private Long modelId;

    @NotNull(message = "插入和修改数据不能为空", groups = { AddOrUpdateGroup.class })
    private JSONObject data;

    @NotNull(message = "插入和修改数据不能为空", groups = { DeleteGroup.class })
    private Map<String, Object> rowInfo;

}
